package com.example.xd.phone_album

import androidx.fragment.app.Fragment

/**
 * @auther XuDan on 2020/9/8.
 */
object FgFactory {
    private lateinit var fragment: Fragment
    fun getFragment(type: String): Fragment {
        when (type) {
            TYPE_PICTURE -> {
                fragment = SelectPicFragment()
            }
            TYPE_VIDEO -> {
                fragment = SelectVideoFragment()
            }
        }
        return fragment
    }
}